FROM openjdk:8-jre
MAINTAINER 张强<13631262097@139.com>

ENV TZ=Asia/Shanghai
RUN cp /usr/share/zoneinfo/$TZ /etc/localtime \
    && echo $TZ > /etc/timezone

RUN mkdir -p /app/hello-swagger-demo
WORKDIR /app/hello-swagger-demo
EXPOSE 8080 8080

ADD ./target/hello-swagger-demo.jar ./

ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "hello-swagger-demo.jar"]
